package com.itheima.reader;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class Demo01 {
    public static void main(String[] args) throws IOException {
        //创建对象
        FileReader reader = new FileReader("day13\\a.txt");
        int read;
        while ((read= reader.read())!=-1) {
            //调用方法
            System.out.println((char)read);
        }

        //释放资源
      reader.close();


    }

}
